modelmenuitem: Fix type checking assertions
authorTimm Bäder <mail@baedert.org>
Mon, 5 Jun 2017 09:25:21 +0000 (11:25 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:13 +0000 (21:27 -0400)
GtkAccelLabel is not a GtkLabel anymore

gtk/gtkmodelmenuitem.c

index 2cf12eff8c31c91efef9ccc00ad3f87b0d891303..0083452edf68a4a53a22235abb77b876ce1d4016 100644 (file)
@@ -150,7 +150,7 @@ gtk_model_menu_item_set_icon (GtkModelMenuItem *item,
     {
       gtk_menu_item_get_label (GTK_MENU_ITEM (item));
       child = gtk_bin_get_child (GTK_BIN (item));
-      g_assert (GTK_IS_LABEL (child));
+      g_assert (GTK_IS_ACCEL_LABEL (child));
     }
 
   /* If it is a box, make sure there are no images inside of it already.
@@ -244,7 +244,7 @@ gtk_model_menu_item_set_text (GtkModelMenuItem *item,
     {
       gtk_menu_item_get_label (GTK_MENU_ITEM (item));
       child = gtk_bin_get_child (GTK_BIN (item));
-      g_assert (GTK_IS_LABEL (child));
+      g_assert (GTK_IS_ACCEL_LABEL (child));
     }
 
   if (GTK_IS_LABEL (child))